package com.example.userservice.service;

import com.example.userservice.model.event.OperationLogEvent;

import javax.servlet.http.HttpServletRequest;
/*import jakarta.servlet.http.HttpServletRequest;*/

/**
 * 操作日志服务接口
 */
public interface OperationLogService {
    
    /**
     * 发送操作日志
     */
    void sendOperationLog(Long userId, String action, String detail, HttpServletRequest request);
    
    /**
     * 发送操作日志
     */
    void sendOperationLog(OperationLogEvent event);
    
    /**
     * 获取客户端IP
     */
    String getClientIp(HttpServletRequest request);
}